<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<form action="<?php echo U(GROUP_NAME.'/Category/sortCate');?>" method="post">
<table style="BORDER-COLLAPSE: collapse" borderColor=#000000 height=40 cellPadding=1 width=auto align=center border=1>
<tr><th>ID</th><th>分类名称</th><th>分类级别</th><th>排序</th><th>操作</th></tr>
<?php if(is_array($cate)): $i = 0; $__LIST__ = $cate;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr><td><?php echo ($vo["id"]); ?></td><td align="left"><?php echo ($vo["html"]); echo ($vo["name"]); ?></td><td><?php echo ($vo["level"]); ?></td><td><input name="<?php echo ($vo["id"]); ?>" value="<?php echo ($vo["sort"]); ?>"></td><td>[<a href="<?php echo U(GROUP_NAME.'/Category/categoryAdd',array('pid'=>$vo['id']));?>">添加子分类</a>]</td></tr><?php endforeach; endif; else: echo "" ;endif; ?>
<tr><td colspan="5" ><input type="submit" value="保存"></td></tr>
</table>
</form>
</body>
</html>